package net.neptech.model.workflow;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author Saya
 * @Date 2025/8/22 11:46
 * @Description TODO
 **/

@Data
@AllArgsConstructor
@NoArgsConstructor
@Entity
@Table(name = "ins_exe")
@TableName("ins_exe")
public class InstanceExecution {
    @TableField("id")
    @Id
    @TableId

    @GeneratedValue(strategy = GenerationType.UUID)
    private String id;

    @TableField("execution_id")
    private String executionId;

    @TableField("parent_execution_id")
    private String parentIdExecutionId;

    @TableField("flow_id")
    private String flowId;

    /**
     * 实例id
     */
    @TableField("`process_instance_id`")
    private String processInstanceId;

    /**
     * 节点id
     */
    @TableField("`node_id`")
    private String nodeId;
    /**
     * 逻辑删除字段
     */
    @TableField("deleted")
    @Column(name = "deleted")
    private Boolean deleted;
    /**
     * 创建时间
     */
    @TableField("create_time")
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    @Column(name = "update_time")
    private Date updateTime;
}
